<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./js/vue.js"></script>
    <!--v-model绑定单选框，单选框被选中的数据属性值被设置为单选框的value值-->
    <div id="app">
        <input type="radio" id="male" value="zhangsan" v-model="name"/>
        <label for="male">zhangsan</label>
        <br>
        <input type="radio" id="female" value="lisi" v-model="name"/>
        <label for="female">lisi</label>
        <p >姓名：{{name}}</p>
    </div>
    <script>
        let vm = new Vue({
             el: '#app',
             data:{
                name:''     
             }
         })
    </script>
</body>
</html>